package com.ruoyi.system.mapper;

import java.util.List;

import com.ruoyi.system.domain.TrainingCadetClassicsExperience;
import com.ruoyi.system.domain.TrainingCadetClassicsExperienceCount;
import org.apache.ibatis.annotations.Param;

/**
 * 学习典籍体会Mapper接口
 *
 * @author dp
 * @date 2023-11-27
 */
public interface TrainingCadetClassicsExperienceMapper {
    /**
     * 查询学习典籍体会
     *
     * @param experienceId 学习典籍体会主键
     * @return 学习典籍体会
     */
    public TrainingCadetClassicsExperience selectTrainingCadetClassicsExperienceByExperienceId(Long experienceId);

    /**
     * 查询学习典籍体会列表
     *
     * @param trainingCadetClassicsExperience 学习典籍体会
     * @return 学习典籍体会集合
     */
    public List<TrainingCadetClassicsExperience> selectTrainingCadetClassicsExperienceList(TrainingCadetClassicsExperience trainingCadetClassicsExperience);

    /**
     * 查询学习典籍体会合计列表
     *
     * @param submitBegin
     * @param submitEnd
     * @param baseId
     * @param experienceStatus
     * @param cadetId
     * @param cadetName
     * @return
     */
    public List<TrainingCadetClassicsExperienceCount> selectTrainingCadetClassicsExperienceCount(
            @Param("submitBegin") String submitBegin,
            @Param("submitEnd") String submitEnd,
            @Param("baseId") String baseId,
            @Param("experienceStatus") String experienceStatus,
            @Param("cadetId") Long cadetId,
            @Param("cadetName") String cadetName);

    public List<TrainingCadetClassicsExperience> getExperienceList(@Param("submitBegin") String submitBegin,
                                                                   @Param("submitEnd") String submitEnd,
                                                                   @Param("baseId") String baseId,
                                                                   @Param("cadetId") String cadetId,
                                                                   @Param("experienceStatus") String experienceStatus);

    /**
     * 新增学习典籍体会
     *
     * @param trainingCadetClassicsExperience 学习典籍体会
     * @return 结果
     */
    public int insertTrainingCadetClassicsExperience(TrainingCadetClassicsExperience trainingCadetClassicsExperience);

    /**
     * 修改学习典籍体会
     *
     * @param trainingCadetClassicsExperience 学习典籍体会
     * @return 结果
     */
    public int updateTrainingCadetClassicsExperience(TrainingCadetClassicsExperience trainingCadetClassicsExperience);

    /**
     * 删除学习典籍体会
     *
     * @param experienceId 学习典籍体会主键
     * @return 结果
     */
    public int deleteTrainingCadetClassicsExperienceByExperienceId(Long experienceId);

    /**
     * 批量删除学习典籍体会
     *
     * @param experienceIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteTrainingCadetClassicsExperienceByExperienceIds(Long[] experienceIds);
}
